home *** CD-ROM | disk | FTP | other *** search
- Path: news.production.compuserve.com!news
- From: Steve Farson <75226.1623@CompuServe.COM>
- Newsgroups: comp.lang.c++
- Subject: C++ Read Comma Delimted Text File
- Date: 5 Apr 1996 16:55:26 GMT
- Organization: CompuServe, Inc. (1-800-689-0736)
- Message-ID: <4k3j9u$jaj$1@mhadg.production.compuserve.com>
-
- I've never seen or heard of any example showing how to read a
- comma delimted text file looking something like this:
-
- ABC,13,12.3,Houston
- DEF,4,11.4,Denver
- EFG,21,14.7,Phoenix
-
- into variables. I have a C program doing this, but think there
- surely is some C++ functions that can help here. Someone
- mentioned Getline() once, but every reference I have says nothing
- about how it would/could be used. If anyone could provide a
- snippet or two on how this is done, it would be great.
-
- Thanks! Steve
-